package com.caochenlei.visitor;

public class Client {
    public static void main(String[] args) {
        ObjectStructure os = new ObjectStructure();
        os.attach(new Mouse());
        os.attach(new Keyboard());
        os.display(new MIComputerPartVisitor());
        os.display(new HPComputerPartVisitor());
    }
}
